import request from '@/utils/request'

// 查询地表位移监测列表
export function listDisplacement(query) {
  return request({
    url: '/video/displacement/list',
    method: 'get',
    params: query
  })
}

// 查询地表位移监测详细
export function getDisplacement(id) {
  return request({
    url: '/video/displacement/' + id,
    method: 'get'
  })
}

// 新增地表位移监测
export function addDisplacement(data) {
  return request({
    url: '/video/displacement',
    method: 'post',
    data: data
  })
}

// 修改地表位移监测
export function updateDisplacement(data) {
  return request({
    url: '/video/displacement',
    method: 'put',
    data: data
  })
}

// 删除地表位移监测
export function delDisplacement(id) {
  return request({
    url: '/video/displacement/' + id,
    method: 'delete'
  })
}
